﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeneratorLib.DB;
using GeneratorLib.DB.Connectios;
using GeneratorLib.DB.Schemas;

namespace GeneratorLib
{
    public partial class TableHost
    {        
        #region Table
        public string TableName
        {
            get
            {
                return this.Table.TableName;
            }
        }

        public bool IsMasterTable
        {
            get
            {
                return this.Table.IsMasterTable;
            }
        }

        public bool IsBusinessTable
        {
            get
            {
                return this.Table.IsBusinessTable;
            }
        }


        public string EntityName
        {
            get
            {
                return this.Table.EntityName;
            }
        }

        public string EntityListName
        {
            get
            {
                return this.Table.EntityListName;
            }
        }

        public string ModelEditName
        {
            get
            {
                return this.Table.ModelEditName;
            }
        }

        public string ModelListName
        {
            get
            {
                return this.Table.ModelListName;
            }
        }

        public string ViewEditName
        {
            get
            {
                return this.Table.ViewEditName;
            }
        }

        public string ModelListSearchName
        {
            get
            {
                return this.Table.ModelListSearchName;
            }
        }

        public string ViewListName
        {
            get
            {
                return this.Table.ViewListName;
            }
        }

        public string ModelEditRepositoryName
        {
            get
            {
                return this.Table.ModelEditRepositoryName;
            }
        }

        public string ModelListRepositoryName
        {
            get
            {
                return this.Table.ModelListRepositoryName;
            }
        }


        #endregion

        public string TableDisplayName
        {
            get
            {
                return this.TableAddin.TableDisplayName;
            }
        }

    }
}
